package com.czp.annotation;

import java.lang.annotation.*;

/**
 * 简易版,只起标志作用
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface MyTransactional {

    /**
     * 默认异常就回滚
     * @return
     */
    Class<? extends Throwable>[] rollbackFor() default {Exception.class};
}